﻿using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Abp.Modules;
using Abp.Reflection.Extensions;
using ShApi.Configuration;
using Abp.Configuration.Startup;
using Abp.AspNetCore.Configuration;

namespace ShApi.Web.Host.Startup
{
    [DependsOn(
       typeof(ShApiWebCoreModule))]
    public class ShApiWebHostModule: AbpModule
    {
        private readonly IHostingEnvironment _env;
        private readonly IConfigurationRoot _appConfiguration;

        public ShApiWebHostModule(IHostingEnvironment env)
        {
            _env = env;
            _appConfiguration = env.GetAppConfiguration();
        }
        /// <summary>
        /// 此方法用于注册此模块的依赖项
        /// </summary>
        public override void Initialize()
        {
            IocManager.RegisterAssemblyByConvention(typeof(ShApiWebHostModule).GetAssembly());
            //Abp.api.WebApi.Configura
            //Configuration.Modules
        }
    }
}
